<%@ page import="veiculo.*,java.util.ArrayList, fachada.*;" contentType="text/html; charset=UTF-8"%>
<html>
<head>
<title>Alteração de Veículo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<center>
<h1>LocAutoWeb - Alterar Veículo</h1>
</center>
<br />
<form name="form1" method="post" action="TelaExibirAltVeiculo.jsp">
<p><br>
<center><strong>Placa do veículo</strong>: <select name="placa">
	<option selected>...</option>
	<%
			Fachada fx= new Fachada();
			ArrayList<Veiculo> veiculo = fx.listarVeiculo();
			
//	Veiculo[] veiculo = fx.listarVeiculo();
	
			for (Veiculo v : veiculo) {
				String placa = v.getPlaca();
				
		%>
        <option value="<%=placa%>"><%=placa%></option>
        <%
			}
		%>
</select>
<p>
<p>&nbsp;&nbsp;&nbsp; <input type="submit" name="Submit" value="Alterar">
</p>
</center>
</form>
</body>
</html>
